#encoding: utf-8
'''
Created on 2012-4-24

@author: huangjacky
@copyright: TeamV - Group: WhutOJ
'''

class PyOJResponse(object):
    '''
    daemon的响应类
    '''

    def __init__(self, iPid= -1, iruntime= -1, irunmem= -1, srunoutput="", iflag= -1, sinfo=""):
        super(PyOJResponse, self).__init__()
        self.__pid = iPid
        self.__runtime = iruntime
        self.__runmem = irunmem
        self.__runoutput = srunoutput
        self.__flag = iflag
        self.__info = sinfo

    def get_pid(self):
        return self.__pid


    def get_runtime(self):
        return self.__runtime


    def get_runmem(self):
        return self.__runmem


    def get_runoutput(self):
        return self.__runoutput


    def get_flag(self):
        return self.__flag


    def get_info(self):
        return self.__info


    def set_pid(self, value):
        self.__pid = value


    def set_runtime(self, value):
        self.__runtime = value


    def set_runmem(self, value):
        self.__runmem = value


    def set_runoutput(self, value):
        self.__runoutput = value


    def set_flag(self, value):
        self.__flag = value


    def set_info(self, value):
        self.__info = value

    pid = property(get_pid, set_pid, None, None)
    runtime = property(get_runtime, set_runtime, None, None)
    runmem = property(get_runmem, set_runmem, None, None)
    runoutput = property(get_runoutput, set_runoutput, None, None)
    flag = property(get_flag, set_flag, None, None)
    info = property(get_info, set_info, None, None)
        
        
        
